package com.mezz.bones.im.logic.domain.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * IM单聊消息-消息元信息
 * </p>
 *
 * @author mezz
 * @since 2025-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "chat_group_message_info", autoResultMap = true)
@ApiModel(value="ChatGroupMessageInfo对象", description="IM单聊消息-消息元信息")
public class ChatGroupMessageInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "消息Key，用于标识单条消息")
    private String msgKey;

    @ApiModelProperty(value = "消息内容，存储实际消息内容")
    private String content;

    @ApiModelProperty(value = "消息扩展信息，存储消息的额外参数")
    private String msgExtra;

    @ApiModelProperty(value = "发送者用户ID")
    private String userId;

    @ApiModelProperty(value = "群组ID")
    private String groupId;

    @ApiModelProperty(value = "发送设备IP地址")
    private String userIp;

    @ApiModelProperty(value = "发送设备类型 miniapp|ios|android|pc")
    private String userDeviceType;

    @ApiModelProperty(value = "发送设备信息")
    private String userImei;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "1已删 0否")
    private Integer isDel;


}
